package com.yazi.mxz.common.service;

import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.dao.Service;
import com.yazi.mxz.common.entity.beans.OrderGoods;
import com.yazi.mxz.common.entity.beans.Store;

public interface OrderGoodsService extends Service<OrderGoods> {
	
	/**
	 * 修改订单商品的实际金额,同时根据金额计算并更改实际购买量,最后订单实际金额
	 * @param store 店铺(游离对象)
	 * @param orderId 订单ID
	 * @param orderGoodsId 订单商品ID
	 * @param realCost 商品实际金额
	 */
	void editCostByStore(Store store, long orderId, long orderGoodsId, float realCost) throws MyException;

}
